package com.sky.mapper;

import com.sky.dto.DishPageQueryDTO;
import com.sky.dto.EmployeeDTO;
import com.sky.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    @Select("select * from employee where username = #{username}")
    Employee getByUsername(String username);

    void updateStatusById(Long id);

    void insertEmp(Employee emp);

    List<Employee> pageSelectRows(DishPageQueryDTO query);

    Employee getById(Integer id);

    void updateById(Employee emp);


}
